package cn.walls1717.wallsmall.seckill.constant;

/**
 * 秒杀Redis key常量
 *
 * @author walls1717
 * @since 2022/11/26 11:21
 **/
public class SeckillRedisKeyConstant {
    /** 秒杀场次前缀 */
    public static final String SESSIONS_CACHE_PREFIX = "seckill:sessions:";
    /** 秒杀商品前缀 */
    public static final String SKU_KILL_CACHE_PREFIX = "seckill:skus";
    /** 秒杀商品库存信号量前缀 + 商品随机码 */
    public static final String SKU_STOCK_SEMAPHORE_PREFIX = "seckill:stock:";
    /** 秒杀定时任务分布式锁前缀 */
    public static final String UPLOAD_LOCK = "seckill:upload:lock";
}
